class TestDemo<T extends Number>{

}
public class Test3 {
    public static void main(String[] args) {
        TestDemo<Integer> testDemo = new TestDemo<>();
        TestDemo<Double> testDemo1 = new TestDemo<>();
        TestDemo<Number> testDemo2 = new TestDemo<>();
    }
}
